﻿<link rel="stylesheet" href="/css/reset333.css">
<link rel="stylesheet" href="/css/style333.css">
<script src="/js/jquery.js"></script>
<script src="/js/main333.js"></script>
<div>
    <a href="/admin" class="btn btn-primary btn-lg active" role="button"><首页</a>
</div>
@foreach($compus as $ck => $cv)
<ul class="cd-accordion-menu animated">
    @if(count($res1[$ck])>0)
    <li class="has-children">
        <input type="checkbox" name ="group-{{$ck}}" id="group-{{$ck}}">
        <label for="group-{{$ck}}">{{$cv}}</label>
        <ul>
            @foreach($res1[$ck] as $res1_k => $res1_v)
                @if(count($res2[$res1_k])>0)
                <li class="has-children">
                    <input type="checkbox" name ="sub-group-{{$res1_k}}" id="sub-group-{{$res1_k}}">
                    <label for="sub-group-{{$res1_k}}">{{$res1_v}}</label>
                        <ul>
                            @foreach($res2[$res1_k] as $res2_k => $res2_v)
                                @if(count($res3[$res2_k])>0)
                                <li class="has-children">
                                    <input type="checkbox" name ="sub-group-level-{{$res2_k}}" id="sub-group-level-{{$res2_k}}">
                                    <label for="sub-group-level-{{$res2_k}}">{{$res2_v}}</label>
                                @else
                                <li><a href="casual_record_ques/{{$res2_k}}">{{$res2_v}}</a></li>
                                @endif
                                    <ul>
                                        @foreach($res3[$res2_k] as $res3_k => $res3_v)
                                        <li><a href="casual_record_ques/{{$res3_k}}">{{$res3_v}}</a></li>
                                        @endforeach
                                    </ul>
                                </li>
                                @endforeach
                        </ul>
                </li>
                @else
                    <li><a href="casual_record_ques/{{$res1_k}}">{{$res1_v}}</a></li>
                    @endif
            @endforeach
        </ul>
    </li>
    @else
    <li><a href="casual_record_ques/{{$ck}}">{{$cv}}</a></li>
    @endif
</ul>
@endforeach